package com.matrix.java.chap_05;

/*
    将英里转换成千米
 */
public class Ex5_04 {
    public static void main(String[] args) {
        final double Proportion = 1.609;
        System.out.println("英里" + "-------" + "千米");
        for (int i = 1; i < 11; i++) {
            double kilometer;
            kilometer = i * Proportion;
            System.out.printf("%d%s%.3f%n", i, "--------", kilometer);
        }
    }
}